Skip to content

fix: Handle bigints properly in more cases#3345

Merged
josdejong merged 5 commits intojosdejong:developfrom
gwhitney:bigint_fixes
Jan 24, 2025
Merged

fix: Handle bigints properly in more cases#3345
josdejong merged 5 commits intojosdejong:developfrom
gwhitney:bigint_fixes

Conversation

@gwhitney
Copy link
Collaborator

@gwhitney gwhitney commented Jan 3, 2025

  • Allow a bigint to appear in a max/min of nonhomogeneous arguments
  • If randomInt is called with a bigint or a pair of bigints, return a bigint.
  • Preserve uniformity of results if randomInt is called with a very large range.
  • Extend log, log2, and log10 to bigints.
  • Allow mixed Fraction and BigNumber in smaller and larger.
  • Add tests for all of the above issues.
  • Bonus: fix one JSDoc comment issue. If every PR fixes one, we will soon get through the 150+ of them.

Resolves #3344.

  * Allow a bigint to appear in a max/min of nonhomogeneous arguments
  * If randomInt is called with a bigint or a pair of bigints, return
    a bigint.
  * Preserve uniformity of results if randomInt is called with a very large
    range.
  * Extend log, log2, and log10 to bigints
  * Add tests for all of the above issues.
  * Bonus: fix one JSDoc comment issue. If every PR fixes one, we will soon
    get through the 150+
Copy link
Owner

@josdejong josdejong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gwhitney, looks good!

I have made a few comments with some questions and minor feedback, can you have a look at those?

@gwhitney
Copy link
Collaborator Author

OK, I believe I have incorporated all feedback and gotten this PR back into a good state. Thanks for your review.

Copy link
Owner

@josdejong josdejong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates Glen, I'll merge the PR now

@josdejong josdejong merged commit 8510b85 into josdejong:develop Jan 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

instances of lack of support for bigints

2 participants